<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="com.dhpollack.rotogss.data.RotoGSSUsers" %>
<%@ page import="com.dhpollack.rotogss.data.RotoGSSTeams" %>
<%@ page import="com.google.appengine.api.datastore.Key" %>
<%@ page import="com.google.appengine.api.datastore.KeyFactory" %>
<%@ page import="javax.jdo.JDOObjectNotFoundException" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="com.dhpollack.rotogss.helper.PMF" %>

<html>
  <head>
  </head>
  <body>
  <h2>Standings</h2>
  <br /><br />
  
  <%
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
	
    //PersistenceManager pm = (PersistenceManager) req.getAttribute("pm");
    
    //RotoGSSUsers rg_user = (RotoGSSUsers) req.getAttribute("rg_user");
    //Set<RotoGSSTeams> rg_teams = (Set<RotoGSSTeams>) req.getAttribute("rg_teams");
    
    if (user != null) {

%>
<%
    } else {
%>
<p>Hello!
<a href="<%= userService.createLoginURL(request.getRequestURI()) %>">Sign in</a>
to Google.</p>
<%
    }
%>
  
  
  
  </body>
</html>

